<?php
namespace app\common\validate;
class Follow extends \think\Validate
{
    protected $rule = [
        'message_id'  => 'require',
        'content' => 'require|unique:follow,message_id^content',
    ];

    protected $message = [
        'content.require' => '跟进内容不能为空',
        'content.unique' => '请勿跟进重复内容',
    ];

}